package com.flyketch.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * created by steve
 * 2019-12-08 22:30
 */

@RestController
@RequestMapping("/hello")
public class HelloController {

    @GetMapping("")
    public String index() {
        return "hello world";
    }

    @GetMapping("/")
    public String one() {
        return "hello one";
    }

    @GetMapping("/hi")
    public String hi() {
        return "hello steve";
    }
}
